#pragma once
#include <iostream>
using namespace std;
class Date
{
public:

	int GetMonthDay(int year, int month)
	{
		int arr[13] = { 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
		if (month == 2 && (year % 4 == 0 && year % 100 != 0 || year % 400 == 0))
		{
			return 29;
		}
		return arr[month];
	}

	Date(int year = 2024, int month = 8, int day = 12);
	~Date();
	bool operator==(Date& d);
	bool operator!=(Date& d);
	bool operator>(Date& d);
	bool operator<(Date& d);
	bool operator<=(Date& d);
	bool operator>=(Date& d);
	Date operator+=(int x);
	Date operator+(int x);
	Date operator-=(int x);
	Date operator-(int x);
	int operator-(Date& d);
	Date operator++(int);
	Date operator++();
	Date operator--(int);
	Date operator--();


private:
	int _year;
	int _month;
	int _day;
};